home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
764
< prev
next >
Wrap
Internet Message Format
|
1996-08-06
|
929b
Path: news.rmii.com!usenet
From: jcoffin@rmii.com (Jerry Coffin)
Newsgroups: comp.std.c
Subject: Re: Q: char **foo, char *foo[], and char foo[][] ?
Date: Thu, 18 Apr 1996 13:10:31 -0600
Organization: TAEUS
Message-ID: <MPLANET.317693a7jcoffin989d39@news.rmii.com>
References: <4l33ok$oo2@Sherlock.lectra.fr>
NNTP-Posting-Host: slip22144.rmii.com
X-Newsreader: MicroPlanet News32 v1.00 Beta Build 302
In article <4l33ok$oo2@Sherlock.lectra.fr>, phil@rd.lectra.fr says...
> Considering the 3 following declarations:
>
> 1 - char **foo;
> 2 - char *foo[];
> 3 - char foo[][];
>
> I know that there is a (big !) difference in memory reservation, but I do
> not know if foo IS or IS NOT of the same type in these three cases.
[ ... ]
In declaring a parameter to a function, any declaration of an array is treated
as a declaration of a pointer. In all other situations, the two are separate
and distinct.
Later,
Jerry.